﻿@using Microsoft.Web.Helpers;
@{
    ViewBag.Title = "Upload";
}
@{
    var fileName = "";
    if (IsPost) {
        var fileSavePath = "";
        var uploadedFile = Request.Files[0];
        fileName = Path.GetFileName(uploadedFile.FileName);
        var blob = ViewBag.Container.GetBlobReference(fileName);
        blob.UploadFromStream(uploadedFile.InputStream);
    }
}

<h2>Upload</h2>
@FileUpload.GetHtml(
        initialNumberOfFiles:1,
        allowMoreFilesToBeAdded:false,
        includeFormTag:true,
        uploadText:"Upload")
    @if (IsPost) {
        <span>File uploaded!</span><br/>
    }
